how to check if a form is already open c